import { useState,Suspense } from 'react'
import './App.css'
import { CSSTransition,TransitionGroup} from 'react-transition-group'
import { BrowserRouter as Router,Route,Link,NavLink} from 'react-router-dom'
import routes from './router/index'
import { useRoutes } from 'react-router-dom'
function App() {
  const element = useRoutes(routes)
  return (
    <div>
      <Suspense fallback={<div>loading...</div>}>
        { element }
      </Suspense>
    </div>
  )
}

export default App
